Skip to main content

Wrap Nodes Using Regex

WRAP_TEXT_NODES_MATCHING

Wraps the text nodes matching the regex with the specified element.

Parameters

  • css (string): CSS selector
  • regex (string): REGEX expression
  • elementName (string): The name of the element
  • topicText (string): Use $TOPIC_XHTML
  • class (string): The class value (optional)
  • trackChanges (bool): true/false

Returns

Flare XHTML